package com.xiangying.entity.common;

/**
 * 返回结果枚举
 * @author luolihong
 *
 */
public enum ResultEnum {
    SUCCESS(0, "成功"),
    
    FAILED(-1, "业务操作错误"),
    
    DATABASE_ERROR(-2, "数据库错误"),
    
    INTERFACE_ERROR(-3, "接口调用错误"),
    
    UNKNOW_ERROR(-4, "未知错误"),
    ;

    private Integer code;

    private String msg;

    ResultEnum(Integer code, String msg) {
        this.code = code;
        this.msg = msg;
    }

    public Integer getCode() {
        return code;
    }

    public String getMsg() {
        return msg;
    }
}
